package ai.people.netmon.framework.domain.system.request;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author yuanqinglong
 * @date 2022/4/11 14:48
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UpdatePasswordParam {

    /**
     * 账户
     */
    @NotBlank(message = "账号为空")
    @Length(max = 30, message = "账号最长长度为{max}")
    private String account;

    /**
     * 密码
     */
    @NotBlank(message = "密码为空")
    private String password;
}
